package com.hzw.saas.web.admin.banner.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel("banner配置参数")
public class BannerParam implements Serializable {

    private static final long serialVersionUID = 2577216455967223444L;

    @ApiModelProperty(value = "banner主键", position = 1)
    private String pid;

    @NotBlank(message = "类型不可为空")
    @ApiModelProperty(value = "类型", position = 2)
    private String clientType;

    @ApiModelProperty(value = "banner标题", position = 3)
    private String bannerTitle;

    @NotBlank(message = "类型不可为空")
    @ApiModelProperty(value = "banner图片地址", position = 4)
    private String imageUrl;

    @ApiModelProperty(value = "跳转地址", position = 5)
    private String openUrl;

    @ApiModelProperty(value = "跳转方式", position = 6)
    private String openType;

    @ApiModelProperty(value = "排序", position = 7)
    private Integer sort;

}
